/* 忘记密码模态框遮罩层 */
.forgot-password-modal-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    background-color: transparent;
    display: none;
    z-index: 10002;
}

/* 模态框内容盒子 */
.forgot-password-modal-content {
    background-color: #fff;
    width: 400px;
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid #eee;
    position: relative;
    box-sizing: border-box;
    min-height: 400px;
}

/* 标题 */
.forgot-title {
    font-size: 28px;
    font-weight: 800;
    color: #333;
    margin-bottom: 15px;
    text-align: left;
    padding-left: 5px;
}

.success-title {
    text-align: center !important;
}

/* 提示文本 */
.forgot-hint {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
    text-align: left;
    padding-left: 5px;
}

.forgot-hint span {
    color: #000;
    font-weight: bold;
}

/* 表单 */
.forgot-form {
    margin-bottom: 20px;
}

/* 输入框组 */
.input-group {
    margin-bottom: 18px;
}

.forgot-input {
    width: 100%;
    padding: 15px;
    border: 1px solid #777;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
    color: #333;
    transition: border-color 0.3s;
}

.forgot-input:focus {
    border-color: #333;
}

.forgot-input.input-error {
    border-color: #ef4444;
}

.forgot-input::placeholder {
    color: #999;
    font-size: 15px;
}

/* 错误提示 */
.input-error {
    display: block;
    text-align: left;
    font-size: 12px;
    color: #ef4444;
    margin-top: 4px;
    min-height: 16px;
    padding-left: 2px;
}

/* 提交按钮 */
.forgot-submit-btn {
    width: 100%;
    padding: 15px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s;
    position: relative;
}

.forgot-submit-btn:hover:not(:disabled) {
    background-color: #333;
}

.forgot-submit-btn:disabled {
    background-color: #666;
    cursor: not-allowed;
}

.forgot-submit-btn.loading {
    color: transparent;
}

.forgot-submit-btn.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 重发验证码 */
.resend-section {
    margin: 15px 0;
    font-size: 14px;
    color: #666;
    text-align: center;
}

.resend-link {
    color: #000;
    text-decoration: underline;
    cursor: pointer;
}

.resend-link:hover {
    color: #333;
}

/* 底部链接 */
.forgot-footer {
    text-align: center;
    margin-top: 20px;
}

.back-to-login-link {
    font-size: 14px;
    color: #666;
    text-decoration: none;
}

.back-to-login-link:hover {
    color: #000;
    text-decoration: underline;
}

/* 成功图标 */
.success-icon {
    width: 80px;
    height: 80px;
    background-color: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto 25px;
    font-size: 40px;
    color: #fff;
}

.success-hint {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    text-align: center;
}
